Fix #150406, reported by Fernando San Martín Woerner, patch by Gustavo
authorMatthias Clasen <maclas@gmx.de>
Sun, 22 Aug 2004 04:11:14 +0000 (04:11 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 22 Aug 2004 04:11:14 +0000 (04:11 +0000)
Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>

Fix #150406, reported by Fernando San Martín Woerner, patch
by Gustavo Carneiro.

* gtk/gtkentrycompletion.c
(gtk_entry_completion_default_completion_func): Check that
column is of type G_TYPE_STRING before proceeding.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentrycompletion.c

index 2fa8cf4bc19c4ce5457d14a182929d2db179282b..a979052e59adfa33118b00c300040dea6ca9b199 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>
+
+       Fix #150406, reported by Fernando San Martín Woerner, patch
+       by Gustavo Carneiro.
+       
+       * gtk/gtkentrycompletion.c 
+       (gtk_entry_completion_default_completion_func): Check that 
+       column is of type G_TYPE_STRING before proceeding.
+
 Sat Aug 21 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an 
index 2fa8cf4bc19c4ce5457d14a182929d2db179282b..a979052e59adfa33118b00c300040dea6ca9b199 100644 (file)
@@ -1,3 +1,12 @@
+Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>
+
+       Fix #150406, reported by Fernando San Martín Woerner, patch
+       by Gustavo Carneiro.
+       
+       * gtk/gtkentrycompletion.c 
+       (gtk_entry_completion_default_completion_func): Check that 
+       column is of type G_TYPE_STRING before proceeding.
+
 Sat Aug 21 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an 
index 2fa8cf4bc19c4ce5457d14a182929d2db179282b..a979052e59adfa33118b00c300040dea6ca9b199 100644 (file)
@@ -1,3 +1,12 @@
+Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>
+
+       Fix #150406, reported by Fernando San Martín Woerner, patch
+       by Gustavo Carneiro.
+       
+       * gtk/gtkentrycompletion.c 
+       (gtk_entry_completion_default_completion_func): Check that 
+       column is of type G_TYPE_STRING before proceeding.
+
 Sat Aug 21 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an 
index 2fa8cf4bc19c4ce5457d14a182929d2db179282b..a979052e59adfa33118b00c300040dea6ca9b199 100644 (file)
@@ -1,3 +1,12 @@
+Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>
+
+       Fix #150406, reported by Fernando San Martín Woerner, patch
+       by Gustavo Carneiro.
+       
+       * gtk/gtkentrycompletion.c 
+       (gtk_entry_completion_default_completion_func): Check that 
+       column is of type G_TYPE_STRING before proceeding.
+
 Sat Aug 21 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an 
index 511f4b6fb4c1231aaccc8e2c46e24ccf9b84e4fe..f2abe951c2af8a216befd225da81b7d0d69fa9ae 100644 (file)
@@ -675,6 +675,9 @@ gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion,
 
   model = gtk_tree_model_filter_get_model (completion->priv->filter_model);
 
+  g_return_val_if_fail (gtk_tree_model_get_column_type (model, completion->priv->text_column) == G_TYPE_STRING, 
+                       FALSE);
+
   gtk_tree_model_get (model, iter,
                       completion->priv->text_column, &item,
                       -1);